package com.huike.controller.business;

import java.util.List;

import com.huike.controller.core.BaseController;
import com.huike.domain.common.AjaxResult;
import com.huike.utils.DateUtils;
import com.huike.web.CurrentUserHolder;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.BeanUtils;
import org.springframework.beans.factory.annotation.Autowired;
import com.huike.common.annotation.PreAuthorize;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
import com.huike.domain.business.TbBusiness;
import com.huike.domain.business.TbBusinessTrackRecord;
import com.huike.domain.business.vo.BusinessTrackVo;
import com.huike.service.ITbBusinessTrackRecordService;
import com.huike.service.ISysDictDataService;
import com.huike.common.annotation.Log;
import com.huike.common.enums.BusinessType;

/**
 * 商机跟进记录Controller
 */
@Api(tags = "商机管理")
@RestController
@RequestMapping("/business/record")
public class TbBusinessTrackRecordController extends BaseController {

    @Autowired
    private ITbBusinessTrackRecordService tbBusinessTrackRecordService;

    @Autowired
    private ISysDictDataService sysDictDataService;

    /**
     * 查询商机跟进记录列表
     */
    @ApiOperation("商机跟进记录-查询")
    @PreAuthorize("business:record:list")
    //@GetMapping("/list")
    public  AjaxResult list(@RequestParam("businessId")Long id){
        return null;
    }


    /**
     * 新增商机跟进记录
     */
    @ApiOperation("商机跟进记录-新增")
    @PreAuthorize("business:record:add")
    @Log(title = "商机跟进记录", businessType = BusinessType.INSERT)
    //@PostMapping
    public AjaxResult add(@RequestBody BusinessTrackVo businessTrackVo){
        return null;
    }
}
